<?php defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); ?>

<div class="contentheading">
    <?php echo $this->project->getName(); ?> - <?php echo $this->team->getName(); ?>
</div>

<?php if ($this->teammap->hasOption('showResults')): ?>
    {tab=<?php echo _LM_RESULTS; ?>}
    {leagueman_teamresult p="<?php echo $this->project->getID(); ?>" t="<?php echo $this->team->getID(); ?>"}
<?php endif ?>

<?php if ($this->teammap->hasOption('showTable')): ?>
    {tab=<?php echo _LM_TABLE; ?>}
    {leagueman_leaguetable p="<?php echo $this->project->getID(); ?>"}
<?php endif ?>

<?php if ($this->teammap->hasOption('showSquad')): ?>
    {tab=<?php echo _LM_SQUAD; ?>}
    <div class="contentpane">
        <div align="center" style="margin-bottom:10px;">
            <?php $this->plugin("thumb", "teams", $this->teammap->getImage(), 550, 0); ?>
        </div>
    </div>
    {leagueman_squad p="<?php echo $this->project->getID(); ?>" t="<?php echo $this->team->getID(); ?>"}
<?php endif ?>

<?php if ($this->teammap->hasOption('showHistory')): ?>
    {tab=<?php echo _LM_HISTORY; ?>}
    {leagueman_history t="<?php echo $this->team->getID(); ?>"}
<?php endif ?>

<?php if ($this->teammap->hasOption('showClub')): ?>
    {tab=<?php echo _LM_CLUB; ?>}
    {leagueman_clubinfo c="<?php echo $this->team->getClub(); ?>"}
<?php endif ?>

<?php if ($this->teammap->hasOption('showNews')): ?>
    {tab=<?php echo 'News'; ?>}
    {leagueman_related_items type="team"}
<?php endif ?>

<?php if ($this->teammap->hasOptions()): ?>
    {/tabs}
<?php endif ?>